// by Xeno
#define THIS_FILE "x_clear_layoutgear.sqf"
#include "x_setup.sqf"

GVAR(custom_layout) = [];

if (!GVAR(with_ranked)) then {
	_pgearl = profileNamespace getVariable QGVAR(dom_gear_l);
	if (!isNil "_pgearl") then {
		_side = str GVAR(player_side);
		switch (_side) do {
			case "WEST": {_pgearl set [0, ["WEST", []]]};
			case "EAST": {_pgearl set [1, ["EAST", []]]};
			case "RESISTANCE": {_pgearl set [2, ["RESISTANCE", []]]};
			default {_pgearl set [3, ["DEFAULT", []]]};
		};
		profileNamespace setVariable [QGVAR(dom_gear_l), _pgearl];
		saveProfileNamespace;
	};
};

systemChat (localize "STR_DOM_MISSIONSTRING_201");
